﻿@{
    ViewBag.Title = "图件上传";
    Layout = "~/Views/Project/_FilesLayout.cshtml";
}
<link href="@Url.Content("~/Content/themes/base/validationEngine.jquery.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validationEngine.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validationEngine-ch.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $(".button").button();
        $("form").validationEngine();
    });
</script>

<form method="post" action="/Project/UploadPicture" enctype="multipart/form-data">
    <input type="hidden" id="projectId" name="projectId" value="@ViewBag.ProjectId" />
    <input type="file" id="image" name="image" class="validate[required]"/>
    <div class="editor-label">
        图件编号
    </div>      
    <div class="editor-field">
        <input type="text" id="SerialNumber" name="SerialNumber" class="validate[custom[integer]]"/>
    </div>      
        <div class="editor-label">
        图件名称
    </div>      
    <div class="editor-field">
        <input type="text" id="Name" name="Name" class="validate[required]"/>
    </div> 
    <div class="editor-label">
        安全级别
    </div>      
    <div class="editor-field">
        <input type="text" id="SecurityLevel" name="SecurityLevel" />
    </div> 
    <div class="editor-label">
        提供单位
    </div>      
    <div class="editor-field">
        <input type="text" id="ProvideOrganization" name="ProvideOrganization" />
    </div> 
    <div class="editor-label">
        图号
    </div>      
    <div class="editor-field">
        <input type="text" id="PictureNumber" name="PictureNumber"/>
    </div> 
        <div class="editor-label">
        备注
    </div>      
    <div class="editor-field">
        <textarea  id="Remarks" name="Remarks" > </textarea>
    </div> 
    <br />
    <input type="submit" class="button" value="保存" />
</form>
@Html.ValidationSummary(true)    



